<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-3">{:__('Project_id')}:</label>
        <div class="col-xs-12 col-sm-7">
            <input id="c-project_id" data-source="fastflow/bill/project/select" data-params='{"custom[status]":"2"}' data-field="name"  class="form-control selectpage" name="row[project_id]" type="text" value="{$row.project_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Acceptfile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input id="c-acceptfile" class="form-control" size="50" name="row[acceptfile]" type="text" value="{$row.acceptfile|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-acceptfile" class="btn btn-danger faupload" data-input-id="c-acceptfile" data-multiple="false" data-preview-id="p-acceptfile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-acceptfile" class="btn btn-primary fachoose" data-input-id="c-acceptfile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-acceptfile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-acceptfile"></ul>
        </div>
    </div>
    <!-- 判断项目流程是否为流程中-->
    <?php if($row['status'] > 0):?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Finalizefile')}:</label>
        <div class="col-xs-12 col-sm-7">
            <div class="input-group">
                <input id="c-finalizefile" class="form-control" size="50" name="row[finalizefile]" type="text" value="{$row.finalizefile|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-finalizefile" class="btn btn-danger faupload" data-input-id="c-finalizefile" data-multiple="false" data-preview-id="p-finalizefile"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-finalizefile" class="btn btn-primary fachoose" data-input-id="c-finalizefile" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-finalizefile"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-finalizefile"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Results')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-results" class="form-control " rows="5" name="row[results]" cols="50">{$row.results|htmlentities}</textarea>
        </div>
    </div>
    <?php endif;?>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-3">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-7">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-3"></label>
        <div class="col-xs-12 col-sm-7">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
